/*
var cnt = "${fld:cnt}";
if (parseInt(cnt)>0)
{
    document.getElementById("findHouseDiv").innerHTML = "<font color='green'>已经匹配到房源!</font>";
    document.formEditor.house_tuid.value = "${fld:tuid}";
}else{
    document.getElementById("findHouseDiv").innerHTML = "<font color='red'>没有匹配到房源!</font>";
}
*/
var flag = false;
<qrows>
	flag = true;
	document.getElementById("findHouseDiv").innerHTML = "<font color='green'>已经匹配到房源!</font>";
    document.formEditor.house_tuid.value = "${fld:tuid}";
</qrows>

var status_value = "";
var flag_value = "";
<statusrows>
    status_value = "${fld:status}";
</statusrows>
<flagrows>
    flag_value = "${fld:flag}";
</flagrows>

if(flag == false){
	document.getElementById("findHouseDiv").innerHTML = "<font color='red'>没有匹配到房源!</font>";
	document.formEditor.house_tuid.value = "";
}else{
	if(flag_value != "0"){
		document.getElementById("findHouseDiv").innerHTML = "<font color='red'>该房源已经被安置!</font>";
		document.formEditor.house_tuid.value = "";
	}else{
		if(status_value != "1"){	/*可分配*/
			document.getElementById("findHouseDiv").innerHTML = "<font color='red'>该房源非可分配状态!</font>";
			document.formEditor.house_tuid.value = "";
		}
	}
}